blob: 325e50a3548d5731b7dea1939743c33de69a4d37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- gsearchtool/gsearchtool-callbacks.c.orig Thu Dec 23 19:14:17 2004
+++ gsearchtool/gsearchtool-callbacks.c Thu Dec 23 19:15:55 2004
@@ -54,9 +54,11 @@
quit_application (GSearchCommandDetails * command_details)
{
if (command_details->command_status == RUNNING) {
- command_details->command_status = MAKE_IT_QUIT;
#ifdef HAVE_GETPGID
pid_t pgid;
+#endif
+ command_details->command_status = MAKE_IT_QUIT;
+#ifdef HAVE_GETPGID
pgid = getpgid (command_details->command_pid);
@@ -122,10 +124,12 @@
GSearchWindow * gsearch = data;
if (gsearch->command_details->command_status == RUNNING) {
+#ifdef HAVE_GETPGID
+ pid_t pgid;
+#endif
gtk_widget_set_sensitive (gsearch->stop_button, FALSE);
gsearch->command_details->command_status = MAKE_IT_STOP;
#ifdef HAVE_GETPGID
- pid_t pgid;
pgid = getpgid (gsearch->command_details->command_pid);
|