aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-10 23:38:09 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-10 23:38:09 +1000
commit32b531667aa1e7f085b8316ffd5c8df7f6b3987c (patch)
tree154a49403412d633d396390b447dbd97001f51dd /proc.c
parentc47dae77a4a6c4789fc730d471502bcebdcb8c76 (diff)
Fix bug that causing terminal corruption if a job is put under job control before running in interactive mode. This is fixed by doing more inits at startup (but only slightly more)
darcs-hash:20060310133809-ac50b-d31cd7bab1a3a58de2833f73735817a3d0b3ed7d.gz
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/proc.c b/proc.c
index 5ea4f7e3..431d8e2c 100644
--- a/proc.c
+++ b/proc.c
@@ -192,7 +192,7 @@ job_t *job_create()
res->job_control = (job_control_mode==JOB_CONTROL_ALL) ||
((job_control_mode == JOB_CONTROL_INTERACTIVE) && (is_interactive));
-
+
// if( res->job_id > 2 )
// fwprintf( stderr, L"Create job %d\n", res->job_id );
return res;
@@ -813,8 +813,7 @@ static void read_try( job_t *j )
else
{
b_append( buff->param2.out_buffer, b, l );
- }
-
+ }
}
}
}
@@ -829,14 +828,14 @@ void job_continue (job_t *j, int cont)
j->next = first_job;
first_job = j;
j->notified = 0;
-
+
debug( 4,
- L"Continue on job %d (%ls), %ls, %ls",
+ L"Continue job %d (%ls), %ls, %ls",
j->job_id,
j->command,
job_is_completed( j )?L"COMPLETED":L"UNCOMPLETED",
is_interactive?L"INTERACTIVE":L"NON-INTERACTIVE" );
-
+
if( !job_is_completed( j ) )
{
if( j->terminal && j->fg )