diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-05-11 09:39:31 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-05-11 09:39:31 +0000 |
| commit | 4e66f937698fd0792c17db2085d99ee5985c81ff (patch) | |
| tree | e74c8ad3ae56b08a3c2e6d7d5eca596ddba38562 /test | |
| parent | d4bcbf5be337164e631c75d50b397992d794166f (diff) | |
Missing header files and FL_EXTERNs that prevented DLL's from compiling
under BCC.
Fluid will output A::B::C names for nested classes.
Fl_Browser::lineposition(n, BOTTOM) will align the bottom of the line
rather than the top with the bottom of the browser.
The connect program does wait() so that it does not leave a zombie for
every one of your ppp connections.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
| -rw-r--r-- | test/connect.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/connect.cxx b/test/connect.cxx index 5b690e64e..81e11667d 100644 --- a/test/connect.cxx +++ b/test/connect.cxx @@ -1,5 +1,5 @@ // -// "$Id: connect.cxx,v 1.4 1999/01/07 19:17:51 mike Exp $" +// "$Id: connect.cxx,v 1.4.2.1 1999/05/11 09:39:31 bill Exp $" // // PPP example program for the Fast Light Tool Kit (FLTK). // @@ -31,6 +31,7 @@ #include <stdio.h> #include <unistd.h> #include <signal.h> +#include <sys/wait.h> #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -40,6 +41,7 @@ int running; // actually the pid Fl_Toggle_Button *Button; void sigchld(int) { + waitpid(running, 0, 0); running = 0; Button->value(0); } @@ -53,6 +55,7 @@ void cb(Fl_Widget *o, void *) { } else { if (!running) return; kill(running, SIGINT); + waitpid(running, 0, 0); running = 0; } } @@ -68,5 +71,5 @@ int main(int argc, char ** argv) { } // -// End of "$Id: connect.cxx,v 1.4 1999/01/07 19:17:51 mike Exp $". +// End of "$Id: connect.cxx,v 1.4.2.1 1999/05/11 09:39:31 bill Exp $". // |
