NetworkManager/callouts
Lubomir Rintel ddc6d97f00 dispatcher: only evaluate the number of the scripts if the request is still there
The request could have been completed by the call to complete_request() just above.
In that case we should just return instead of looking for nowait scripts to run.

  Core was generated by `/usr/libexec/nm-dispatcher'.
  Program terminated with signal SIGSEGV, Segmentation fault.
  #0  0x00007f6c916ad0fb in complete_script (script=<error reading variable: value has been optimized out>, script=<error reading variable: value has been optimized out>) at nm-dispatcher.c:349
  349                     if (   script->request->num_scripts_nowait == 0
  (gdb) bt
  #0  0x00007f6c916ad0fb in complete_script (script=<error reading variable: value has been optimized out>, script=<error reading variable: value has been optimized out>) at nm-dispatcher.c:349
  #1  0x00007f6c8f02d484 in g_child_watch_dispatch (source=<optimized out>, callback=<optimized out>, user_data=<optimized out>) at gmain.c:5148
  #2  0x00007f6c8f03079a in g_main_context_dispatch (context=0x7f6c9358d9a0) at gmain.c:3109
  #3  0x00007f6c8f03079a in g_main_context_dispatch (context=context@entry=0x7f6c9358d9a0) at gmain.c:3708
  #4  0x00007f6c8f030ae8 in g_main_context_iterate (context=0x7f6c9358d9a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3779
  #5  0x00007f6c8f030dba in g_main_loop_run (loop=0x7f6c9358da80) at gmain.c:3973
  #6  0x00007f6c916abcd4 in main (argc=1, argv=0x7ffee4326768) at nm-dispatcher.c:935
  (gdb)

Fixes: e97a334e37

https://bugzilla.redhat.com/show_bug.cgi?id=1297826
2016-01-12 15:48:03 +01:00
..
tests build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00
Makefile.am build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00
nm-dispatcher-api.h nm-dispatcher: allow scripts to be marked as no-wait 2015-08-25 15:27:18 +02:00
nm-dispatcher-utils.c dispatcher: return error reason from nm_dispatcher_utils_construct_envp() 2015-08-25 15:27:19 +02:00
nm-dispatcher-utils.h dispatcher: return error reason from nm_dispatcher_utils_construct_envp() 2015-08-25 15:27:19 +02:00
nm-dispatcher.c dispatcher: only evaluate the number of the scripts if the request is still there 2016-01-12 15:48:03 +01:00
nm-dispatcher.conf dbus: final dbus policy fixes (bgo #563730) 2009-02-17 10:43:53 -05:00
nm-dispatcher.xml dispatcher: port to GDBus 2014-09-18 11:26:59 -04:00
org.freedesktop.nm_dispatcher.service.in dispatcher: rename executable to 'nm-dispatcher' 2014-06-06 13:43:45 -05:00