Merge lp:~denisboyun/drizzle/main_cc_change into lp:drizzle

Proposed by denis
Status: Merged
Approved by: Brian Aker
Approved revision: 2535
Merged at revision: 2564
Proposed branch: lp:~denisboyun/drizzle/main_cc_change
Merge into: lp:drizzle
Diff against target: 16 lines (+7/-0)
1 file modified
drizzled/main.cc (+7/-0)
To merge this branch: bzr merge lp:~denisboyun/drizzle/main_cc_change
Reviewer Review Type Date Requested Status
Drizzle Trunk Pending
Review via email: mp+102156@code.launchpad.net

Description of the change

I only unblock two signal

To post a comment you must log in.
Revision history for this message
denis (denisboyun) wrote :
Revision history for this message
denis (denisboyun) wrote :

i apologize for my abssence(I had to leave the city)
Brian Aker (brianaker) I work with this bug https://bugs.launchpad.net/drizzle/+bug/739702 and if I understand when I keydown(ctrl-z ) drizzled must be go in backgroud mode and when I keydown(ctrl-c) drizzled must be killed. Do i understand correctly? I'm sorry I don't understand . What had you mind when say:"but all of these signals should be using the pthread signal code/be captured just in the thread we keep around to handle signals." sa.sa_handler= func()and func() must run in another thread?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'drizzled/main.cc'
2--- drizzled/main.cc 2012-03-15 03:50:03 +0000
3+++ drizzled/main.cc 2012-04-16 18:26:24 +0000
4@@ -212,6 +212,13 @@
5 }
6 sigprocmask(SIG_SETMASK,&set,NULL);
7 pthread_sigmask(SIG_SETMASK,&set,NULL);
8+
9+ (void) sigemptyset(&set);
10+ sigaddset(&set,SIGTSTP);
11+ sigaddset(&set,SIGINT);
12+ sigprocmask(SIG_UNBLOCK,&set,NULL);
13+ pthread_sigmask(SIG_UNBLOCK,&set,NULL);
14+
15 return;
16 }
17

Subscribers

People subscribed via source and target branches

to all changes: