X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshutdownd%2Fshutdownd.c;h=0f008a6100b475b121641e395e7bb3174d47db90;hp=92907497ed4aaa2ad8b110d19d9ba89d1312acb6;hb=b748c7596f79945be5263a0d1c88de64eb0c5146;hpb=73f860db9893deab6aebceb53dd7d0deb662e832 diff --git a/src/shutdownd/shutdownd.c b/src/shutdownd/shutdownd.c index 92907497e..0f008a610 100644 --- a/src/shutdownd/shutdownd.c +++ b/src/shutdownd/shutdownd.c @@ -52,8 +52,8 @@ static int read_packet(int fd, union shutdown_buffer *_b) { union shutdown_buffer b; /* We maintain our own copy here, in * order not to corrupt the last message */ struct iovec iovec = { - iovec.iov_base = &b, - iovec.iov_len = sizeof(b) - 1, + .iov_base = &b, + .iov_len = sizeof(b) - 1, }; union { struct cmsghdr cmsghdr; @@ -456,6 +456,7 @@ finish: } sd_notify(false, + "STOPPING=\n" "STATUS=Exiting..."); return r;