/[baselayout]/trunk/src/runscript.c
Gentoo

Diff of /trunk/src/runscript.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2743 Revision 2744
232 } 232 }
233} 233}
234 234
235static void cleanup (void) 235static void cleanup (void)
236{ 236{
237 if (prefix_locked) 237 if (! rc_in_plugin && prefix_locked)
238 unlink (PREFIX_LOCK); 238 unlink (PREFIX_LOCK);
239 239
240 /* Flush our buffered output if any */ 240 /* Flush our buffered output if any */
241 eclose (); 241 eclose ();
242 242
257 rc_strlist_free (need_services); 257 rc_strlist_free (need_services);
258 rc_strlist_free (use_services); 258 rc_strlist_free (use_services);
259 rc_strlist_free (tmplist); 259 rc_strlist_free (tmplist);
260 free (ibsave); 260 free (ibsave);
261 261
262 if (in_control ()) { 262 if (! rc_in_plugin && in_control ()) {
263 if (rc_service_state (applet, rc_service_stopping)) { 263 if (rc_service_state (applet, rc_service_stopping)) {
264 /* If the we're shutting down, do it cleanly */ 264 /* If the we're shutting down, do it cleanly */
265 if ((softlevel && 265 if ((softlevel &&
266 rc_runlevel_stopping () && 266 rc_runlevel_stopping () &&
267 (strcmp (softlevel, RC_LEVEL_SHUTDOWN) == 0 || 267 (strcmp (softlevel, RC_LEVEL_SHUTDOWN) == 0 ||
285 285
286 rc_strlist_free (env); 286 rc_strlist_free (env);
287 287
288 if (mtime_test) 288 if (mtime_test)
289 { 289 {
290 if (! rc_in_plugin)
290 unlink (mtime_test); 291 unlink (mtime_test);
291 free (mtime_test); 292 free (mtime_test);
292 } 293 }
293 free (exclusive); 294 free (exclusive);
294 free (applet); 295 free (applet);
295 free (prefix); 296 free (prefix);

Legend:
Removed from v.2743  
changed lines
  Added in v.2744

  ViewVC Help
Powered by ViewVC 1.1.20