ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
NonStopableProcess.php File Reference

Go to the source code of this file.

Functions

 handleSignal ($signal)
 

Variables

 $duration = isset($argv[1]) ? (int) $argv[1] : 3
 
 $start = microtime(true)
 

Function Documentation

◆ handleSignal()

handleSignal (   $signal)

Definition at line 19 of file NonStopableProcess.php.

20 {
21  switch ($signal) {
22  case SIGTERM:
23  $name = 'SIGTERM';
24  break;
25  case SIGINT:
26  $name = 'SIGINT';
27  break;
28  default:
29  $name = $signal.' (unknown)';
30  break;
31  }
32 
33  echo "signal $name\n";
34 }
35 
36 pcntl_signal(SIGTERM, 'handleSignal');
37 pcntl_signal(SIGINT, 'handleSignal');
38 
39 echo 'received ';
40 
41 $duration = isset($argv[1]) ? (int) $argv[1] : 3;
42 $start = microtime(true);
43 
44 while ($duration > (microtime(true) - $start)) {
45  usleep(10000);
46  pcntl_signal_dispatch();
47 }
$argv

Variable Documentation

◆ $duration

$duration = isset($argv[1]) ? (int) $argv[1] : 3

Definition at line 41 of file NonStopableProcess.php.

Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilObjTestSettingsGeneralGUI\addTestRunProperties(), ilChatroomFormFactory\applyValues(), ilCalendarSchedule\calculate(), ilObjMediaCastGUI\determinePlaytimeObject(), ilCalendarAppointmentGUI\edit(), ilBPMN2ParserUtils\extractTimeDateEventDefinitionFromElement(), assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assSingleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assMatchingQuestionImport\fromXML(), WavFile\generateNoise(), ilMDTechnical\getDuration(), ilObjMediaCastGUI\getDuration(), ilECSSettingsGUI\initCategoryMappingForm(), ilTermsOfServiceAcceptanceHistoryTableGUI\initFilter(), ilECSSettingsGUI\initSettingsForm(), WavFile\insertSilence(), ilObjMediaCastGUI\saveCastItemObject(), ilAdvancedMDRecordGUI\showECSStart(), assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assErrorTextExport\toXML(), assFileUploadExport\toXML(), assFlashQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assSingleChoiceExport\toXML(), assNumericExport\toXML(), assMatchingQuestionExport\toXML(), assTextQuestionExport\toXML(), assClozeTestExport\toXML(), assMultipleChoiceExport\toXML(), assImagemapQuestionExport\toXML(), assFormulaQuestionExport\toXML(), assJavaAppletExport\toXML(), assTextSubsetExport\toXML(), assOrderingQuestionExport\toXML(), and ilObjMediaCastGUI\updateCastItemObject().

◆ $start

$start = microtime(true)
Examples:
/usr/local/src/ilias/release_5-2/libs/composer/vendor/filp/whoops/src/Whoops/Exception/Frame.php.

Definition at line 42 of file NonStopableProcess.php.

Referenced by ilObjUserGUI\__getDateSelect(), ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilGroupXMLParser\__save(), ilCalendarUtil\_buildWeekDayList(), HTTP_WebDAV_Server\_get_ranges(), MDB2_Driver_Manager_oci8\_makeAutoincrement(), ilObjGroupAccess\_registrationEnabled(), _DiffEngine\_shift_boundaries(), Text_Diff_Engine_native\_shiftBoundaries(), ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), EasyPeasyICS\addEvent(), ilObjectActivation\addListGUIActivationProperty(), ilChatroomFormFactory\applyValues(), PHPMailer\base64EncodeWrapMB(), ilBcryptPhpPasswordEncoder\benchmarkCost(), benchmarkForm(), ilDBGenerator\buildDBGenerationScript(), ilObjRoleGUI\changeExistingObjectsObject(), HTML5\characters(), ilObjSurvey\checkReminder(), ilCourseStart\cloneDependencies(), ilContainerStartObjects\cloneDependencies(), ilObjCourse\cloneDependencies(), ilCalendarAppointmentGUI\confirmRegister(), ilCalendarAppointmentGUI\confirmUnregister(), ilSurveyConstraintsGUI\constraintStep1Object(), ilConsultationHoursGUI\createAppointments(), ilDBPdoManager\createSequence(), ilDBPdoManagerPostgres\createSequence(), ilDBPdoPostgreSQL\createSequence(), ilDBPdo\createSequence(), MDB2_Driver_Manager_pgsql\createSequence(), MDB2_Driver_Manager_mysql\createSequence(), MDB2_Driver_Manager_mysqli\createSequence(), ilCalendarExport\createVEVENT(), PHPExcel_Calculation_Financial\CUMIPMT(), PHPExcel_Calculation_Financial\CUMPRINC(), ilLOEditorGUI\deleteTest(), ilLOEditorGUI\deleteTests(), ilObjUser\deleteUserDefinedFieldEntries(), ilFileDelivery\deliverPHPChunked(), ilObjRoleFolderGUI\doCopyRole(), ilCourseContentGUI\editTimings(), HTML5\entity(), ilBPMN2ParserUtils\extractTimeDateEventDefinitionFromElement(), ilBlockGUI\fillDetailRow(), ilTable2GUI\fillFooter(), ilBlockGUI\fillPreviousNext(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilConsultationHourBookingTableGUI\fillRow(), GeSHi\finalise(), HTMLPurifier_Arborize\flatten(), ilPageObject\getActive(), ilConsultationHourAppointments\getAppointmentIdsByGroup(), ilCharSelectorConfig\getCharPages(), ilCalendarBlockGUI\getData(), Whoops\Exception\Frame\getFileLines(), ilContainerStartObjectsContentTableGUI\getItems(), ilAdvancedMDFieldDefinitionDate\getLuceneSearchString(), ilAdvancedMDFieldDefinitionDateTime\getLuceneSearchString(), ilTimingPlaned\getPlanedStartingTime(), ilCalendarRegistration\getRegisteredUsers(), MDB2_Driver_Reverse_Common\getSequenceDefinition(), MDB2_Driver_Reverse_oci8\getSequenceDefinition(), ilObjCourse\getSubItems(), ilWorkflowScaffold\getTimeDateEventDefinition(), ilExerciseDataSet\getXmlRecord(), ilPCSection\handleAccess(), HTTP_WebDAV_Server\http_GET(), TCPDF\ImageEps(), ilADTDateSearchBridgeRange\importFromPost(), ilADTDateTimeSearchBridgeRange\importFromPost(), ilSessionDataSet\importRecord(), ilExerciseDataSet\importRecord(), ilCalendarAppointmentGUI\initAppointment(), ilObjectActivationGUI\initFormEdit(), ilObjSurveyGUI\initPropertiesForm(), ilPCSection\insertTimings(), ilLOTestQuestionAdapter\isQualifiedStartRun(), ActiveRecordList\limit(), ActiveRecord\limit(), ilCalendarAppointmentGUI\load(), ilObjCourseAccess\lookupPeriodInfo(), PHPExcel_Calculation_TextData\MID(), ilPCPlugged\modifyPageContentPostXsl(), ilPCAMDPageList\modifyPageContentPostXsl(), ilPCContentInclude\modifyPageContentPostXsl(), ilPCMap\modifyPageContentPostXsl(), ilDBGenerator\openFile(), GeSHi\parse_code(), soap_transport_http\parseCookie(), ilCalendarWeekGUI\parseHourInfo(), ilCalendarDayGUI\parseInfoIntoRaster(), ilObjRoleGUI\permSaveObject(), UtfNormal\quickIsNFCVerify(), ilUtil\rangeDownload(), Securimage\readCodeFromFile(), ilObjSCORM2004LearningModule\readObject(), ilObjSCORMLearningModule\readObject(), ilObjGroup\register(), ilTableGUI\render(), PHPExcel_Calculation_TextData\REPLACE(), ilPageObjectGUI\replaceCurlyBrackets(), ilObjSurveyGUI\savePropertiesObject(), ilDAVServer\serveRequest(), GeSHi\set_time(), ilECSCategoryMappingRule\setDateRangeStart(), ilCourseContentGUI\showStartObjects(), ilAssLacConditionParser\surroundNegationExpression(), Symfony\Component\Process\Tests\ProcessTest\testCheckTimeoutOnStartedProcess(), Symfony\Component\Process\Tests\ProcessTest\testRunProcessWithTimeout(), Symfony\Component\Process\Tests\ProcessTest\testStartIsNonBlocking(), Symfony\Component\Process\Tests\ProcessTest\testStopWithTimeoutIsActuallyWorking(), ilCalendarRecurrenceExclusion\toICal(), HTMLPurifier_Node_Element\toTokenPair(), TCPDF_FONTS\UniArrSubString(), ilLOEditorGUI\updateStartObjects(), usleepWindows(), TCPDF_FONTS\UTF8ArrSubString(), and ilICalParser\writeEvent().