From b2161dc4e1f08f62404a23ef5c0634248df27742 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sat, 24 Jan 2015 18:56:25 -0600 Subject: [PATCH] Disable a bit of useless code. Also, add a copyright notice for me in hush.c. --- shell/hush.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/shell/hush.c b/shell/hush.c index 9b3384466..320615d57 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -7,6 +7,7 @@ * * Copyright (C) 2000,2001 Larry Doolittle * Copyright (C) 2008,2009 Denys Vlasenko + * Copyright (C) 2014,2015 Stephen Heumann (GNO port) * * Licensed under GPLv2 or later, see file LICENSE in this source tree. * @@ -1394,15 +1395,19 @@ int is_forked_child(void) { /* Signal to the parent that it can resume executing after a fork, * because the child is about to exec or terminate. + * + * This currently doesn't do anything, but it could be used in + * alternative versions of the vfork implementation on GNO. */ void signal_parent_to_resume(void) { #ifdef __GNO__ - if (getpid() != G.last_execed_pid) { - /* If procsend wasn't broken, we could send a "ping" to the parent */ - //procsend(getppid(), 0); - } +// if (getpid() != G.last_execed_pid) { +// /* If procsend wasn't broken, we could send a "ping" to the parent */ +// //procsend(getppid(), 0); +// } #endif } +#define signal_parent_to_resume() /* skip calls, since it doesn't do anything */ #ifdef __GNO__