aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-05 23:12:53 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-05 23:12:53 +1000
commit0fa3c15114be3b6bfbd32b53e9621431dbe13632 (patch)
tree1a616ebdf794bc5e260e1bf78df255c6d034ff83 /reader.c
parent58667673d921a782f4a531255344983bbadb9288 (diff)
Tweaks to some source comments
darcs-hash:20060205131253-ac50b-c3ad91b280a73fc8ec318ca6c285de773ffecfc6.gz
Diffstat (limited to 'reader.c')
-rw-r--r--reader.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/reader.c b/reader.c
index c62fb4e6..02169f23 100644
--- a/reader.c
+++ b/reader.c
@@ -1612,6 +1612,11 @@ static void reader_interactive_init()
kill_init();
shell_pgid = getpgrp ();
+ /*
+ This should enable job control on fish, even if our parent did
+ not enable it for us.
+ */
+
/* Loop until we are in the foreground. */
while (tcgetpgrp( 0 ) != shell_pgid)
{
@@ -1644,7 +1649,6 @@ static void reader_interactive_init()
al_init( &prompt_list );
history_init();
-
common_handle_winch(0);
tcgetattr(0,&shell_modes); /* get the current terminal modes */
@@ -1663,7 +1667,10 @@ static void reader_interactive_init()
exit(1);
}
- /* We need to know the parents pid so we'll know if we are a subshell */
+ /*
+ We need to know our own pid so we'll later know if we are a
+ fork
+ */
original_pid = getpid();
if( atexit( &exit_func ) )