aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-07 04:11:01 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-07 04:11:01 +1000
commit57d53c70e3d1baabbe3207ce0356ca8e38842198 (patch)
tree0408df190f6dadb7a9315e5420f48634ee2272bb /proc.c
parent4e77ee45164f745992dbf575f2b6c0f3797dabf0 (diff)
Further halloc:ification if fish
darcs-hash:20060206181101-ac50b-db0aac307a81e7f0677acd15a9f38ff8c7ff36d2.gz
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/proc.c b/proc.c
index a52107c6..08a74cb9 100644
--- a/proc.c
+++ b/proc.c
@@ -109,28 +109,6 @@ void proc_init()
sb_init( &event_status );
}
-
-/**
- Recursively free a process and those following it
-*/
-static void free_process( process_t *p )
-{
- wchar_t **arg;
-
- if( p==0 )
- return;
-
- free_process( p->next );
- free( p->actual_cmd );
- if( p->argv != 0 )
- {
- for( arg=p->argv; *arg; arg++ )
- {
- free( *arg );
- }
- }
-}
-
/**
Remove job from list of jobs
*/
@@ -164,15 +142,7 @@ static int job_remove( job_t *j )
*/
void job_free( job_t * j )
{
- io_data_t *io, *ionext;
-
-// fwprintf( stderr, L"Remove job %d (%ls)\n", j->job_id, j->command );
-
job_remove( j );
-
- /* Then free ourselves */
- free_process( j->first_process);
-
halloc_free( j );
}