Commit 3c508df2 authored by Niels Möller's avatar Niels Möller

* client.c (do_exit_status): Bugfix: Changed && to &.

Rev: src/client.c:1.43
parent dcc5f87e
......@@ -368,14 +368,14 @@ static int do_exit_status(struct channel_request *c,
{
*closure->exit_status = status;
ALIST_SET(channel->request_types, ATOM_EXIT_STATUS, NULL);;
ALIST_SET(channel->request_types, ATOM_EXIT_SIGNAL, NULL);;
ALIST_SET(channel->request_types, ATOM_EXIT_STATUS, NULL);
ALIST_SET(channel->request_types, ATOM_EXIT_SIGNAL, NULL);
/* Sent EOF, if we haven't done that already. */
/* FIXME: Make this behaviour configurable, there may be some
* child process alive that we could talk to. */
if (!(channel->flags && CHANNEL_SENT_EOF))
if (!(channel->flags & CHANNEL_SENT_EOF))
return channel_eof(channel);
return LSH_OK | LSH_GOON;
......@@ -422,8 +422,8 @@ static int do_exit_signal(struct channel_request *c,
if (core)
werror("(core dumped remotely)\n");
ALIST_SET(channel->request_types, ATOM_EXIT_STATUS, NULL);;
ALIST_SET(channel->request_types, ATOM_EXIT_SIGNAL, NULL);;
ALIST_SET(channel->request_types, ATOM_EXIT_STATUS, NULL);
ALIST_SET(channel->request_types, ATOM_EXIT_SIGNAL, NULL);
return close_client_session(channel);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment