From 27def32d9431a61db1e7ec93fbe43006c90ae9b6 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 1 May 2017 14:59:17 -0400 Subject: Clean up style in pbd --- .bin/pbd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.bin/pbd.c b/.bin/pbd.c index b01f80c3..e7b61d12 100755 --- a/.bin/pbd.c +++ b/.bin/pbd.c @@ -23,8 +23,9 @@ static void spawn(const char *cmd, int childFd, int parentFd) { pid_t wait = waitpid(pid, &status, 0); if (wait < 0) err(EX_OSERR, "waitpid"); - if (status) + if (status) { warnx("child %s status %d", cmd, status); + } } else { int fd = dup2(parentFd, childFd); if (fd < 0) err(EX_OSERR, "dup2"); @@ -62,7 +63,9 @@ int main() { ssize_t peek = recv(client, &p, 1, MSG_PEEK); if (peek < 0) err(EX_IOERR, "recv"); - if (peek) spawn("pbcopy", STDIN_FILENO, client); + if (peek) { + spawn("pbcopy", STDIN_FILENO, client); + } error = close(client); if (error) err(EX_IOERR, "close"); -- cgit 1.4.1 /tr>
about summary refs log tree commit diff
path: root/chat.h (unfollow)
Commit message (Expand)Author
2019-02-25Add M-l to list the logJune McEnroe
2019-02-25Output raw to standard error if it is not a terminalJune McEnroe
2019-02-25Update tag colorsJune McEnroe
2019-02-25Add color to tagsJune McEnroe
2019-02-25Remove tag X macros againJune McEnroe
2019-02-25Add M-a to switch to hot or unread windowJune McEnroe
2019-02-25Refactor uiReadJune McEnroe
2019-02-24Scroll by full pages with PageUp/PageDownJune McEnroe
2019-02-23Clarify /window documentationJune McEnroe
2019-02-23Use first word of params in input commandsJune McEnroe
2019-02-23Add C-n and C-p key bindings to switch windowsJune McEnroe
2019-02-23Change example command to join #ascii.town on freenodeJune McEnroe
2019-02-23Call def_prog_mode after termNoFlowJune McEnroe
2019-02-22Move IRC formatting reset to C-sJune McEnroe
2019-02-22Disable terminal flow controlJune McEnroe
2019-02-22Bind up and down arrows to scrollJune McEnroe
2019-02-22Remove topic TODOJune McEnroe
2019-02-22Add /znc commandJune McEnroe
2019-02-22Update status line after scrolling and term eventsJune McEnroe
2019-02-22Reorganize input.cJune McEnroe
2019-02-22Fix name of <raw> window in man pageJune McEnroe
2019-02-22Rename global tags with angle bracketsJune McEnroe
2019-02-22Show status window while connectingJune McEnroe
2019-02-22Reorganize UI code for the umpteenth timeJune McEnroe
2019-02-21Replace "view" with "window"June McEnroe
2019-02-21Remove ROT13June McEnroe
2019-02-21Clean up man pageJune McEnroe
2019-01-26Draw UI before connectingJune McEnroe
2019-01-25Avoid unused variable warnings with getyxJune McEnroe
2019-01-25Add GNU/Linux build instructionsJune McEnroe