diff options
author | Nick Schermer <nick@xfce.org> | 2012-04-13 23:54:06 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2012-04-13 23:54:06 +0200 |
commit | b04c3a211c8da7e788c52c772d9d713e2aa9233a (patch) | |
tree | 7e058e332511d7012765e78994b71280ac18d261 /xfce4-session/xfsm-manager.c | |
parent | 597a19ad0af55978b2d98cb94874901921ffb5dd (diff) | |
download | xfce4-session-b04c3a211c8da7e788c52c772d9d713e2aa9233a.tar.gz |
Drop the sync code because it can segfault on ext2 (bug #7887).
Diffstat (limited to 'xfce4-session/xfsm-manager.c')
-rw-r--r-- | xfce4-session/xfsm-manager.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/xfce4-session/xfsm-manager.c b/xfce4-session/xfsm-manager.c index d457ecae..bf6a4469 100644 --- a/xfce4-session/xfsm-manager.c +++ b/xfce4-session/xfsm-manager.c @@ -1137,26 +1137,6 @@ xfsm_manager_save_yourself_global (XfsmManager *manager, return; } } -#if defined(__NR_ioprio_set) && defined(HAVE_SYNC) - /* if we're on Linux and have ioprio_set(), we start sync()ing the - * disks now, and set the i/o priority to idle so we don't create - * a poor user experience if any apps need to interact with the user - * during shutdown. if we *don't* have ioprio_set(), we sync at the - * end of shutdown, right before quitting. - */ - if (shutdown == TRUE && fork () == 0) - { -#ifdef HAVE_SETSID - setsid (); -#endif - if(!syscall (__NR_ioprio_set, IOPRIO_WHO_PROCESS, getpid (), - IOPRIO_PRIO_VALUE (IOPRIO_CLASS_IDLE, 0))) - { - sync (); - } - _exit (EXIT_SUCCESS); - } -#endif if (!shutdown || shutdown_save) { |