Bug #3882 Resizing xterm window causes ndb node to shutdown
Submitted: 25 May 2004 18:20 Modified: 25 May 2004 22:33
Reporter: Johan Andersson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:mysql-4.1.2-alpha bk OS:Linux (RH 9)
Assigned to: Jonas Oreland CPU Architecture:Any

[25 May 2004 18:20] Johan Andersson
Description:
Signal 28 (resize window signal) not caught results in ndb node to shutdown when resizing terminal window.

How to repeat:
start ndb node and resize xterm window.

Suggested fix:
Catch signal 28:

Suggested bk patch: (Magnus, I have not checked it in or committed this, and I don't know if it has any sideeffects on other OSs, but this solves it on RH9 atleast). Well, if you want it take it!

ndb/src/kernel/ndb-main/Main.cpp: 1.10 1.11 johan 04/05/25 14:23:09 (modified, needs delta)

@@ -273,6 +273,7 @@
   case SIGTTOU:  /* 27              */
     globalData.theRestartFlag = perform_stop;
     break;
+  case SIGWINCH:  /*28              */
   case SIGPIPE:
     /**
      * Can happen in TCP Transporter
[25 May 2004 22:33] Jonas Oreland
An workaround would have been to use daemon-node (ndb -d),
where ndb disconnets from terminal and stuff...