122
122
import com .oracle .graal .python .runtime .PosixSupportLibrary .OpenPtyResult ;
123
123
import com .oracle .graal .python .runtime .PosixSupportLibrary .PosixException ;
124
124
import com .oracle .graal .python .runtime .PosixSupportLibrary .Timeval ;
125
+ import com .oracle .graal .python .runtime .PosixSupportLibrary .UnsupportedPosixFeatureException ;
125
126
import com .oracle .graal .python .runtime .PythonContext ;
126
127
import com .oracle .graal .python .runtime .PythonOptions ;
127
128
import com .oracle .graal .python .runtime .exception .PException ;
@@ -2637,6 +2638,8 @@ PTuple waitpid(VirtualFrame frame, long pid, int options,
2637
2638
gil .acquire ();
2638
2639
throw constructAndRaiseNode .get (inliningTarget ).raiseOSErrorFromPosixException (frame , e );
2639
2640
}
2641
+ } catch (UnsupportedPosixFeatureException e ) {
2642
+ throw constructAndRaiseNode .get (inliningTarget ).raiseOSErrorUnsupported (frame , e );
2640
2643
}
2641
2644
}
2642
2645
} finally {
@@ -2985,6 +2988,8 @@ PNone kill(VirtualFrame frame, long pid, int signal,
2985
2988
return PNone .NONE ;
2986
2989
} catch (PosixException e ) {
2987
2990
throw constructAndRaiseNode .get (inliningTarget ).raiseOSErrorFromPosixException (frame , e );
2991
+ } catch (UnsupportedPosixFeatureException e ) {
2992
+ throw constructAndRaiseNode .get (inliningTarget ).raiseOSErrorUnsupported (frame , e );
2988
2993
}
2989
2994
}
2990
2995
}
@@ -3011,6 +3016,8 @@ PNone kill(VirtualFrame frame, long pid, int signal,
3011
3016
return PNone .NONE ;
3012
3017
} catch (PosixException e ) {
3013
3018
throw constructAndRaiseNode .get (inliningTarget ).raiseOSErrorFromPosixException (frame , e );
3019
+ } catch (UnsupportedPosixFeatureException e ) {
3020
+ throw constructAndRaiseNode .get (inliningTarget ).raiseOSErrorUnsupported (frame , e );
3014
3021
}
3015
3022
}
3016
3023
}
0 commit comments