~walkerlee/totem/pre-interview

« back to all changes in this revision

Viewing changes to src/totem-resources.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-26 00:07:51 UTC
  • mfrom: (1.6.1) (24.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130526000751-kv8ap3x1di4qq8j2
Tags: 3.8.2-0ubuntu1
* Sync with Debian. Remaining changes: 
* debian/control.in:
  - Drop build-depends on libepc-ui-dev and libgrilo-0.2-dev (in universe)
  - Drop libxtst-dev build-depends so that the (redundant) fake key presses
    for inhibiting the screensaver are disabled (LP: #1007438)
  - Build-depend on libzeitgeist-dev
  - Suggest rather than recommend gstreamer components in universe
  - Add totem-plugins-extra
  - Add XB-Npp-Description and XB-Npp-Filename header to the 
    totem-mozilla package to improve ubufox/ubuntu plugin db integration 
  - Refer to Firefox in totem-mozilla description instead of Iceweasel
  - Don't have totem-mozilla recommend any particular browser
  - Drop obsolete python library dependencies since iplayer is no longer
    included
* debian/totem-common.install, debian/source_totem.py:
  - Install Ubuntu apport debugging hook
* debian/totem-plugins-extra.install:
  - Universe plugins split out of totem-plugins (currently only gromit)
* debian/totem-plugins.install:    
  - Skip the plugins split to -extra and add the zeitgeist plugin
* debian/rules:
  - Build with --fail-missing, to ensure we install everything. 
    + Ignore libtotem.{,l}a since we delibrately don't install these.
  - Re-enable hardening, make sure both PIE and BINDNOW are used
    by setting hardening=+all. (LP: #1039604)
* debian/patches/91_quicklist_entries.patch:
  - Add static quicklist
* debian/patches/92_gst-plugins-good.patch:
  - Build without unnecessary gstreamer1.0-bad dependency
* debian/patches/93_grilo_optional.patch:
  - Allow building without grilo while grilo MIR is still pending
* debian/patches/correct_desktop_mimetypes.patch:
  - Don't list the mimetypes after the unity lists
* debian/patches/revert_shell_menu.patch: 
  - revert the use of a shell menu until indicator-appmenu can handle
    the mixed shell/traditional menus itself
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <stdlib.h>
35
35
#include <sys/types.h>
36
36
#include <sys/stat.h>
 
37
 
 
38
#ifdef G_OS_UNIX
37
39
#include <sys/resource.h>
 
40
#endif
38
41
 
39
42
#include "totem-resources.h"
40
43
 
48
51
static void
49
52
set_resource_limits (const char *input)
50
53
{
 
54
#ifdef G_OS_UNIX
51
55
        struct rlimit limit;
52
56
        struct stat buf;
53
57
        rlim_t max;
77
81
        limit.rlim_cur = MAX_HELPER_SECONDS;
78
82
        limit.rlim_max = MAX_HELPER_SECONDS;
79
83
        setrlimit (RLIMIT_CPU, &limit);
 
84
#else
 
85
#warning unimplemented
 
86
#endif
80
87
}
81
88
 
82
89
G_GNUC_NORETURN static gpointer
112
119
                sleep_time = wall_clock_time;
113
120
 
114
121
        finished = FALSE;
115
 
#if GLIB_CHECK_VERSION (2, 31, 0)
116
122
        g_thread_new ("time-monitor", time_monitor, (gpointer) input);
117
 
#else
118
 
        g_thread_create (time_monitor, (gpointer) input, FALSE, NULL);
119
 
#endif
120
123
}
121
124
 
122
125
void