-
-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is needed for running keepalived under GDB (see https://bugzilla.kernel.org/show_bug.cgi?id=9039#c8). Signed-off-by: Quentin Armitage <[email protected]>
- Loading branch information
1 parent
9309a4b
commit 7e4c75f
Showing
6 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7e4c75f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
7e4c75f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shuold the commit remove the SIGINT process ?
Reasons:
Ctrl+c
sends SIGINT is the common practice and keepalived always runs in daemon state. so keepalived should not care SIGINT signalI Have read the content of https://bugzilla.kernel.org/show_bug.cgi?id=9039#c8).
But the keepalived source codes does not have any sigwait calling
Is it the kernel's bug caused my problem?
7e4c75f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot remove the SIGINT handling by default because some users may use SIGINT, albeit they could change to use SIGTERM, but we always attempt to maintain backwards compatibility. Further, you state
keepalived always runs in daemon state
but keepalived has a--dont-fork
option which causes it not to run in daemon state.The reason I specifically referenced comment 8 at https://bugzilla.kernel.org/show_bug.cgi?id=9039#c8 is that it states "their program is either blocked in sigwait or is accepting SIGINT via signalfd". keepalived receives signals via signalfd.
7e4c75f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thx :)
--
But it will make some trouble when I wants to debug the running keepalived using
gdb att $pid
or study the runtime logic anytimeso I think the benefit is less for keeping such a compatibility
7e4c75f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smithAchang Since you want to be able to attach to a running keepalived with gdb, and also since you know you don't need SIGINT to be handled by keepalived, you can always run keepalived with the --ignore-sigint option, and then you will always be able to attach to keepalvied.