We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca8eac commit 71904deCopy full SHA for 71904de
1 file changed
+stdlib/get_pid.m
@@ -2,19 +2,10 @@
2
3
function pid = get_pid()
4
5
-try
+if stdlib.matlabOlderThan('R2025a')
6
+ pid = uint64(feature('getpid'));
7
+else
8
pid = matlabProcessID;
-catch e
- switch e.identifier
9
- case 'MATLAB:UndefinedFunction'
10
- pid = feature('getpid');
11
- case 'Octave:undefined-function'
12
- pid = getpid();
13
- otherwise
14
- rethrow(e)
15
- end
16
end
17
18
-pid = uint64(pid);
19
-
20
0 commit comments