X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsocket.c;h=96c649b0ab04bf6171db46cda9c7f08b4121feca;hp=3f57e35350e89e92b066d233352f46f8e62c6cf6;hb=64e5f1b721d76948e2987f65841dc087f684e1de;hpb=7b4bf06ba7f31ea8069fc8927729d70ab98b9b64 diff --git a/src/socket.c b/src/socket.c index 3f57e3535..96c649b0a 100644 --- a/src/socket.c +++ b/src/socket.c @@ -77,6 +77,8 @@ static void socket_init(Unit *u) { s->mark = -1; exec_context_init(&s->exec_context); + s->exec_context.std_output = u->meta.manager->default_std_output; + s->exec_context.std_error = u->meta.manager->default_std_error; s->control_command_id = _SOCKET_EXEC_COMMAND_INVALID; } @@ -1361,7 +1363,7 @@ static int socket_start(Unit *u) { if (s->service->meta.load_state != UNIT_LOADED) return -ENOENT; - /* If the service is alredy active we cannot start the + /* If the service is already active we cannot start the * socket */ if (s->service->state != SERVICE_DEAD && s->service->state != SERVICE_FAILED && @@ -1796,7 +1798,7 @@ void socket_connection_unref(Socket *s) { /* The service is dead. Yay! * - * This is strictly for one-onstance-per-connection + * This is strictly for one-instance-per-connection * services. */ assert(s->n_connections > 0);