diff options
| author | Manolo Gouy <Manolo> | 2016-03-09 16:17:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-09 16:17:36 +0000 |
| commit | 18098db3ae1b7ca9f68c9a896c2b44947e84622d (patch) | |
| tree | 3ab176677ea5c8a3e2b90cdc0c9a4a1985320fa4 /src/print_panel.cxx | |
| parent | d4577f0d0acfcf0ce3e137de4600a0e59c52c6e9 (diff) | |
Fix freeze of Fl_Native_File_Chooser occurring under Mac OS + X11 when printing to .ps file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/print_panel.cxx')
| -rw-r--r-- | src/print_panel.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/print_panel.cxx b/src/print_panel.cxx index f2b7a7494..18bc2982c 100644 --- a/src/print_panel.cxx +++ b/src/print_panel.cxx @@ -549,7 +549,6 @@ printing_style print_load() { // return whether SystemV or BSD printing style is } pclose(lpstat); } - fclose(stderr); if (print_choice->size() == 2 && (lpstat = fopen("/etc/printcap", "r"))) { // try next with BSD printing system while (fgets(line, sizeof(line),lpstat)) { // get names of all known printers @@ -598,7 +597,7 @@ void print_update_status() { if ((lpstat = popen(command, "r")) != NULL) { if (fgets(status, sizeof(status), lpstat) == 0) { // if no reply pclose(lpstat); - snprintf(command, sizeof(command), "lpq -P%s", printer); // try next with BSD printing system + snprintf(command, sizeof(command), "lpq -P%s 2>&-", printer); // try next with BSD printing system if ((lpstat = popen(command, "r")) != NULL) { if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ } } |
