chiark / gitweb /
@@ -1,9 +1,11 @@
[userv.git] / servexec.c
index 168e07657ad427dd16021e5a58662d0af10cd9ef..fa8b8ac033d4d6e65a179e1e893184469e2af571 100644 (file)
@@ -137,6 +137,15 @@ void bisexec_execute(const char *const *argv) {
   serv_checkstdoutexit();
 }
 
+void bisexec_shutdown(const char *const *argv) {
+  /* This is only reached if the serviceuser_uid test in
+   * process.c:servicerequest() fails (we have to handle the
+   * shutdown request there, unfortunately).
+   */
+  fputs("uservd: builtin service shutdown: permission denied\n",stderr);
+  _exit(-1);
+}
+
 static void serv_resetsignal(int signo) {
   struct sigaction sig;