Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit a2acb64

Browse files
author
Massimiliano Pippi
committed
restore build on posix
1 parent cdc22b2 commit a2acb64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

exceptions_posix.go

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
package python
44

5+
// #include "go-python.h"
6+
import "C"
7+
58
// int PySignal_SetWakeupFd(int fd)
69
// This utility function specifies a file descriptor to which a '\0' byte will be written whenever a signal is received. It returns the previous such file descriptor. The value -1 disables the feature; this is the initial state. This is equivalent to signal.set_wakeup_fd() in Python, but without any error checking. fd should be a valid file descriptor. The function should only be called from the main thread.
710
func PySignal_SetWakeupFd(fd int) int {

0 commit comments

Comments
 (0)