@@ -136,7 +136,9 @@ func (mp *parent) handleSignal(s os.Signal) {
136
136
if s == os .Interrupt {
137
137
mp .Supervise = false
138
138
}
139
- if s != syscall .SIGURG {
139
+ //do a string comparison instead of using syscall.SIGURG
140
+ //because windows will fail to build otherwise
141
+ if s .String () != "urgent I/O condition" {
140
142
mp .debugf ("proxying signal (%s)" , s )
141
143
}
142
144
mp .sendSignal (s )
@@ -146,7 +148,9 @@ func (mp *parent) handleSignal(s os.Signal) {
146
148
mp .debugf ("interupt with no child" )
147
149
os .Exit (1 )
148
150
} else {
149
- if s != syscall .SIGURG {
151
+ //do a string comparison instead of using syscall.SIGURG
152
+ //because windows will fail to build otherwise
153
+ if s .String () != "urgent I/O condition" {
150
154
mp .debugf ("signal discarded (%s), no child process" , s )
151
155
}
152
156
}
@@ -158,7 +162,9 @@ func (mp *parent) sendSignal(s os.Signal) {
158
162
mp .debugf ("signal (%s) failed (%s), assuming child process died unexpectedly" , s , err )
159
163
//if we receive a SIGURG during shutdown
160
164
//don't exit with an error code
161
- if ! mp .Supervise && s != syscall .SIGURG {
165
+ //do a string comparison instead of using syscall.SIGURG
166
+ //because windows will fail to build otherwise
167
+ if ! mp .Supervise && s .String () != "urgent I/O condition" {
162
168
os .Exit (1 )
163
169
}
164
170
}
0 commit comments