diff --git a/server-tools/instance-manager/manager.cc b/server-tools/instance-manager/manager.cc
index 06e181d52d5de9a4631b306de1e63b69c8c3edfa..2690f882e04224ea184f4454e05f59c74233d552 100644
--- a/server-tools/instance-manager/manager.cc
+++ b/server-tools/instance-manager/manager.cc
@@ -56,7 +56,7 @@ void manager(const char *socket_file_name)
     in the process.
   */
   int signo;
-  sigwait(&mask, &signo);
+  my_sigwait(&mask, &signo);
   thread_repository.deliver_shutdown();
   /* don't pthread_exit to kill all threads who did not shut down in time */
 }