From 058a7319bde1f11c524228d6b9d12b1b3c3ed5bc Mon Sep 17 00:00:00 2001 From: jmz Date: Mon, 29 Sep 2003 14:55:39 +0000 Subject: Fix exit status passing in vgetty for external shells. PR: ports/47473 Submitted by: Martijn Lina --- comms/mgetty+sendfax/Makefile | 2 +- comms/mgetty+sendfax/files/patch-v | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 comms/mgetty+sendfax/files/patch-v (limited to 'comms') diff --git a/comms/mgetty+sendfax/Makefile b/comms/mgetty+sendfax/Makefile index 89e6c1437c7f..0544c0f6e684 100644 --- a/comms/mgetty+sendfax/Makefile +++ b/comms/mgetty+sendfax/Makefile @@ -7,7 +7,7 @@ PORTNAME= mgetty PORTVERSION= 1.1.30.12.16 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= comms MASTER_SITES= ftp://alpha.greenie.net/pub/mgetty/source/1.1/ DISTNAME= mgetty1.1.30-Dec16 diff --git a/comms/mgetty+sendfax/files/patch-v b/comms/mgetty+sendfax/files/patch-v new file mode 100644 index 000000000000..78c9262b59a8 --- /dev/null +++ b/comms/mgetty+sendfax/files/patch-v @@ -0,0 +1,30 @@ +--- voice/libvoice/signal.c.orig Sat Oct 23 23:58:01 1999 ++++ voice/libvoice/signal.c Fri Jan 24 22:03:15 2003 +@@ -34,23 +34,16 @@ + + static void signal_sigchld(int sig) + { ++ /* ++ This appears to break passing back the shells exitstatus to vgetty ++ + pid_t pid; + int status; +- pid = wait(&status); /* This appears to fix core dumps on HPUX. Maybe this ++ pid = wait(&status);*/ /* This appears to fix core dumps on HPUX. Maybe this + * also fixes the same problem on Solaris. + */ + signal(SIGCHLD, signal_sigchld); +- if (status) { +- lprintf(L_WARN, "%s: Got child %d exit status %d signal", +- program_name, +- pid, +- status); +- } +- else { +- lprintf(L_JUNK, "%s: Got child %d exit signal", +- program_name, +- pid); +- } ++ lprintf(L_JUNK, "%s: Got child status change signal", program_name); + queue_event(create_event(SIGNAL_SIGCHLD)); + } -- cgit